<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vw与vh体验</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        /* vw体验 */
        .box {
            width: 50vw;
            height: 50vw;
            background-color:red;
        }

        /* vh体验 */
        /*.box {*/
        /*    width: 50vh;*/
        /*    height: 50vh;*/
        /*    background-color: red;*/
        /*}*/
    </style>
</head>
<body>
<div class="box">

</div>
<script>
   'use strict';
</script>
</body>
</html>
